package com.converse.diamondreader.activities.findId;

import android.content.Context;
import android.graphics.Rect;
import android.view.Display;

import com.google.mlkit.vision.text.Text;

import java.util.List;

import androidx.camera.view.PreviewView;
import androidx.lifecycle.LifecycleOwner;

/**
 * Author: Administrator
 * Date: 2021/12/7
 * Project: DiamondReader
 * Description:
 */
public interface FindIdView {
    PreviewView getViewFinder();

    Context getContext();

    void onGetId(String id);

    LifecycleOwner getLifeCycleOwner();

    Display getWindowDisplay();

    void showVersionCode(String version);

    void showToast(String msg);

    void onGetIdAndTextFrame(String id, Rect frame);

    void onGetRecognizeTexts(List<Text.Line> recognizedTexts);
}
